﻿using System.Collections.Generic;
namespace CRMSystemV2.IDAL
{
    public interface IBase<T> where T:class
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        string Insert(T model);
        /// <summary>
        /// 删除，支持批量删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        string Delete(string ids);        
        /// <summary>
        /// 修改资料
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        string Update(T model);
        /// <summary>
        /// 查看详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        T GetModel(string id);
    }
}
